import {WeaTools} from 'ecCom'

const basePath = '/api/workrelate/portrait';

export const tagAPI = params => {   //任务标签
    return WeaTools.callApi('/api/workrelate/task/taskTag', 'POST', params);
}

export const getIndividualRiskData = params => {   //获取个人风险数据
    return WeaTools.callApi(basePath+'/risk/data/getIndividual', 'GET', params);
}

export const getMyAttentionList = params => {   //获取个人画像-我的关注人员列表数据
    return WeaTools.callApi(basePath+'/attention/getMyAttentionList', 'GET', params);
}

export const delMyAttention = params => {   //个人画像-删除我的关注
    return WeaTools.callApi(basePath+'/attention/del', 'POST', params);
}

export const addMyAttention = params => {   //个人画像-新增我的关注
    return WeaTools.callApi(basePath+'/attention/add', 'POST', params);
}

export const getIndividualAutograph = params => {   //个人画像-获取个人个性签名
    return WeaTools.callApi(basePath+'/common/getIndividualAutograph', 'GET', params);
}

export const setIndividualAutograph = params => {   //个人画像-新增个人个性签名
    return WeaTools.callApi(basePath+'/common/setIndividualAutograph', 'POST', params);
}

export const getIndividualInfoTag = params => {   //获取个人画像-个人标签
    return WeaTools.callApi(basePath+'/common/getIndividualInfoTag', 'GET', params);
}

export const addIndividualInfoTag = params => {   //个人画像-删除个人标签
    return WeaTools.callApi(basePath+'/common/addIndividualInfoTag', 'POST', params);
}

export const delIndividualInfoTag = params => {   //个人画像-新增个人标签
    return WeaTools.callApi(basePath+'/common/delIndividualInfoTag', 'POST', params);
}

export const getExecAssessData = params => {   // 获取个人画像执行力评测数据
    return WeaTools.callApi('/api/workrelate/portrait/personWorkrelateInfo', 'GET', params)
}

export const getWorkRecordList = params => {   // 获取系统工作记录Items
    return WeaTools.callApi('/api/workrelate/portrait/getWorkRecordList', 'GET', params)
}
export const getWorkRecordDetail = (url,params) => {   // 获取系统工作记录Items
    return WeaTools.callApi(url, 'GET', params)
}
export const getWorkRecordTable = (url,params) => {   // 获取系统工作记录Items
    return WeaTools.callApi(url, 'GET', params)
}
export const getInfluenceList = params => {   // 获取影响力指标
    return WeaTools.callApi(basePath+'/influence/getList', 'GET', params)
}
export const getInfluenceData = (url,params) => {   // 获取影响力指标Item数据
    return WeaTools.callApi(url, 'GET', params)
}
export const checkViewRight = params => {   // 获取组织画像查看权限
    return WeaTools.callApi(basePath +'/getViewRight', 'GET', params)
}

